package com.zretc.service;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zretc.dao.EmployeeDao;
import com.zretc.entity.Employee;

/**
 * 业务层注解
 * 
 * @author admin
 *
 */
@Service(value = "empservice")
public class EmployeeServiceImpl implements EmployService {

	// 注入一个什么属性？
//	/@Resource 也是注入
	// @Autowired
	@Resource
	private EmployeeDao empdao;

	@Override
	public Employee getEmployee() {
		// TODO Auto-generated method stub
		return empdao.getEmployee();
	}

}
